import Component.*;
import Decorator.*;

public class Main {
    public static void main(String[] args){
        Component equipped = new ComponentText();
        Decorator decoratorArmoor = new DecoratorArmor(equipped);
        Decorator decoratorHelmet = new DecoratorHelmet(decoratorArmoor);
        Decorator decoratorShoe = new DecoratorShoe(decoratorHelmet);

        decoratorShoe.operation("猪八戒");
    }
}
